﻿using UnityEngine;
using System.Collections;

public class HowToPlay : MonoBehaviour 
{
	private string sceneLink = "Main Menu";
	
	void OnGUI()
	{
		string story = "Select units by clicking on them or click and drag to select multiple units. Right click to " +
			"order them to move \nsomewhere; they will automatically attack the nearest enemy. Destroy the enemy base " +
			"to win; if they destroy yours, \nit's game over. You can scroll by moving the mouse to the edge of the game screen."
			+ "\n\nBy selecting your command center, you can purchase " +
			"upgrades to make your newly spawned units better. Upgrades \nwill increase in cost after every purchase. \n\nNeutral " +
			"units are scattered across the center of the map. Their size indicates their strength, but the stronger " +
			"they \nare, the greater the monetary reward. \n\nIncome towers are located in the corners not occupied by bases. " +
			"Capture them by approaching them and killing off \nany enemy units present. Income towers provide a steady " +
			"amount of money per second, though over time this \namount will increase to ensure that they stay relevant.";
		
		story = GUI.TextField (new Rect (Screen.width/4, Screen.height/4, Screen.width/2, Screen.height/2), story);
		
		if (GUI.Button (new Rect (Screen.width/2 - 50, Screen.height * 3/4 + 10, 100, 30), "Back")) 
		{
			Application.LoadLevel (sceneLink);
		}
	}
}
